<!--  -->
<template>
  <div>
啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发啊沙发沙发沙发
  </div>
</template>

<script>
export default {
  data: function () {
    return {
    }
  },

  mounted () { // 进入页面就开始执行
    this.$bus.$on('getmsg', (msg) => {
      console.log(msg)
    })
  },

  components: {// 组件
  },

  computed: {// 计算属性是属性调用，而methods是函数调用
  },

  methods: {// 存储方法，处理复杂逻辑}
  }

}
</script>
<style scoped>
</style>
